//vue组件
import Vue from 'vue'
import VueRouter from 'vue-router'

//导航页
import Index from '@/views/Index.vue'

import Order from '@/views/order/Order.vue'
import Login from '@/views/login/Login.vue'

Vue.use(VueRouter)

const routes = [

  {
    path: '/',
    name: 'Index',
    component: Index
  },
  {
    path: '/order',
    name: 'Order',
    component: Order
  },
  {
    path: '/login',
    name: 'Login',
    component: Login
  },

]

const router = new VueRouter({
  mode :'history',
  routes
})

export default router